package demo1;

public class Person implements HumanBasicFunction{

    public String name;
    public int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public void breathe() {
        System.out.println(this.name + "正在呼吸空气...");
    }

    @Override
    public void eat() {
        System.out.println(this.name + "正在吃汉堡...");
    }

    @Override
    public void sleep() {
        System.out.println(this.name + "正在睡觉...");
    }

}
